
<template tag="以下文档内容为hycli自动生成">
  <div>
  <el-dialog
    v-model="conf.visible"
    :title="title"
    draggable
    align-center="true"
    width="68%"
    :close-on-click-modal="false"

  >
    <el-tabs v-model="conf.selected">
      <el-tab-pane label="详情" name="aaaqw">
<el-row :gutter="24" style="font-size: 0.7rem;">
  <el-col :span="4" class="text-right" style="min-height:26px">编号:</el-col>
  <el-col :span="8" v-text="view.cc_id||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">任务类型:</el-col>
  <el-col :span="8" v-text="view.cc_tp_label" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">人员:</el-col>
  <el-col :span="8" v-text="view.staff_id_label" style="min-height:26px" ></el-col>
  <el-col :span="12"></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">内容:</el-col>
  <el-col :span="20" style="min-height:26px" v-html="'<pre>'+view.content+'</pre>'" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">处理方式:</el-col>
  <el-col :span="8" v-text="view.deal_tp_label" style="min-height:26px" :class="$js.page.colorful(view.deal_tp,'deal_tp')" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建人:</el-col>
  <el-col :span="8" v-text="view.creator||'-'" style="min-height:26px" ></el-col>
  <el-col :span="4" class="text-right" style="min-height:26px">创建时间:</el-col>
  <el-col :span="8" v-text="view.create_time||'-'" style="min-height:26px" ></el-col>
</el-row>
      </el-tab-pane>
    </el-tabs>
    <template #footer>
      <span style="height: 60px"> </span>
    </template>
  </el-dialog>
</div>
</template>
<script>
import gantt from "@/views/cmpnts/gantt.vue"
export default {
   components: {
    gantt,
  },
  data() {
    return {
        conf:{
        visible:false,
        
        selected:"aaaqw",
      },
      title:"企业文化详情",
      form:{},
      view: {
        cc_id:"",
        cc_tp:"",
        staff_id:"",
        content:"",
        deal_tp:"",
        creator:"",
        create_time:"",
        },
      }
  },
  methods: {
  show_cmpnt_aaaqv(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaqv.show(form)
  },
  show_cmpnt_aaaqs(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaqs.show(form)
  },
  show_cmpnt_aaaqt(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaqt.show(form)
  },
  show_cmpnt_aaaqu(fm = {}){
    let form = Object.assign({},this.form)
    form = Object.assign(form,fm)
    this.$refs.cmpnt_aaaqu.show_aaaqu(form)
  },
 show(form) {
    this.conf.visible = true
    this.form = form
   let that = this;
   this.$theia.http
      .get("/ws/corp/culture",form)
      .then((res) => {
        let item = Object.assign({}, res)
        item.cc_tp_label = that.$theia.enum.getName("cc_tp",item.cc_tp)
        item.staff_id_label = that.$theia.enum.getName("dmaster",item.staff_id)
        item.deal_tp_label = that.$theia.enum.getName("deal_tp",item.deal_tp)  
        item.staff_id = (item.staff_id||"")  
        item.content = (item.content||"")
        item.create_time = that.$theia.str.dateFormat(item.create_time,'yyyy/MM/dd')
        that.view = item
      })
      .catch((res) => {
        let code = res.response.status;
        let msg = `企业文化查询失败(${code})`;
        that.$notify.error({ title: "失败", message: msg, duration: 5000 });
      });
  },
  },
};
</script>
<style scoped>
/deep/.el-step__title{
    font-size: 0.8rem;
}
.steps{
  margin-top:8px;
  margin-bottom:  16px;
}
</style>